<%@ page import="com.software.entity.UserInfo" %>
<%@ page import="java.util.List" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="/exam/userList" method="post">
    <input type="text" value="${userName}" name="userName" >
    <button type="submit">查询</button>
</form>

<table border="">
    <tr>
        <td>用户Id</td>
        <td>用户名</td>
        <td>密码</td>
        <td>头像地址</td>
    </tr>
    <c:forEach items="${userList}" var="userInfo">
        <tr>
            <td><c:out value="${userInfo.userId}"/></td>
            <td><c:out value="${userInfo.userName}"/></td>
            <td><c:out value="${userInfo.password}"/></td>
            <td><c:out value="${userInfo.avatar}"/></td>
        </tr>
    </c:forEach>


</table>


</body>
</html>
